#include"ProcessPool.hpp"
void Usage(std::string proc){
	std::cout<<"please enter: "<<proc<<" num"<<std::endl;
}
int main(int argc,char* argv[]){
	if(argc!=2){
		Usage(argv[0]);
		return UsageError;
	}

	ProcessPool pp(std::stoi(argv[1]),ReadAndWork);
	pp.InitPool();
	pp.AssignTasks();
	pp.CleanPool();
	return 0;
}